package com.controller;

import java.io.Serializable;




import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import org.primefaces.model.DualListModel;

@ManagedBean
@ViewScoped
public class TesteBeam implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4738362990379945434L;
	
	private Date date;
	
	private DualListModel<String> disciplinas;
	@PostConstruct
	public void init(){
      
		    List<String> disciplinaSource = new ArrayList<String>();
	        List<String> disciplinaTarget = new ArrayList<String>();
	         
	        disciplinaSource.add("MATA01 - Disciplina A");
	        disciplinaSource.add("MATA02 - Disciplina B");
	        disciplinaSource.add("MATA03 - Disciplina C");
	        disciplinaSource.add("MATA04 - Disciplina D");
	        disciplinaSource.add("MATA05 - Disciplina E");
	        disciplinaSource.add("MATA06 - Disciplina I");
	        disciplinaSource.add("MATA07 - Disciplina J");
	         
	        disciplinas = new DualListModel<String>(disciplinaSource, disciplinaTarget);
		
		
		
		
	}
	public DualListModel<String> getDisciplinas() {
		return disciplinas;
	}
	public void setDisciplinas(DualListModel<String> disciplinas) {
		this.disciplinas = disciplinas;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}

}
